#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>


void cfkjb(int n) {
    int count = 0;
    int a = 1;
    int b = 1;
    int num = 0;
    for (; a <= n; a++) {
        for (b = 1; b <= a; b++) {
            num = a * b;
            printf("%d*%d=%-4d", b, a, num);
        }printf("\n");
    }

    return ;
}

int main() {
	int n;
	scanf("%d", &n);
	cfkjb(n);

    return 0;
}
	